how todemonstrate JavaScript code output in html